assert_fs
Assert Filesystems - Filesystem fixtures and assertions for testing.
assert_fs
aims to simplify
- Setting up files for your tests to consume
- Asserting on files produced by your tests
Example
Here is a trivial example:
use *;
use *;
let temp = new.unwrap;
let input_file = temp.child;
input_file.touch.unwrap;
// ... do something with input_file ...
input_file.assert;
temp.child.assert;
temp.close.unwrap;
See the documentation for more information.
License
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.